home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / applic / ncsa / Mac / Telnet2.6 / prerelease / d5 / Telnet 2.6.1d5.src.sit.hqx / Telnet 2.6.1d5 src / source / config / Preferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-17  |  5.5 KB  |  193 lines

  1. #define    PREFERENCES_FILE_NAME_STR_ID    1991    // STR resource containing "NCSA Telnet
  2.                                                 //    Preferences" or translated name
  3.  
  4. // Name of each instance is the resource name.  Resource type TeRm
  5. typedef    struct {
  6.     short
  7.         version;                // Version of this structure
  8.         
  9.     RGBColor
  10.         nfcolor,                // Normal foreground RGB
  11.         nbcolor,                // Normal background RGB
  12.         bfcolor,                // Blinking foreground RGB
  13.         bbcolor,                // Blinking background RGB
  14.         reserved1,                // Reserved by JMB - NCSA
  15.         reserved2;                // Reserved by JMB - NCSA
  16.         
  17.     short
  18.         vtemulation,            // 0 = VT100, 1 = VT220 (supposedly)
  19.         vtwidth,                // Width of the terminal screen in characters
  20.         vtheight,                // Height of the terminal screen in characters
  21.         fontsize,                // Size of DisplayFont to use to display text
  22.         numbkscroll;            // Number of lines to save in scroll buffer
  23.         
  24.     Boolean
  25.         ANSIgraphics,            // Recognize ANSI color sequences
  26.         Xtermsequences,            // Recognize Xterm sequences
  27.         vtwrap,                    // Use VT wrap mode
  28.         emacsmetakey,            // Option key is EMACS meta key
  29.         emacsarrows,            // Arrow keys and mouse position are EMACS flavor
  30.         MATmappings,            // Map PageUp, PageDown, Home, End. (MAT == Mark Tamsky)
  31.         eightbit,                // Don't strip the high bit
  32.         clearsave;                // Save cleared lines
  33.         
  34.     Str63
  35.         DisplayFont;            // Font to use to display text
  36.     
  37.     Str32
  38.         AnswerBackMessage;        // Response to send when asked what terminal we are
  39.     
  40.     short
  41.         padding[100];            // So I'm generous....
  42. }    TerminalPrefs;
  43. #define    TERMINALPREFS_RESTYPE    'TeRm'
  44. #define    TERMINALPREFS_APPID        1991        // The "<Default>" terminal seed copy
  45.  
  46. // Name of each instance is the resource name.  Resource type SeSn
  47. typedef    struct {
  48.     short
  49.         version;                // Version of this structure
  50.         
  51.     short
  52.         port,                    // Port to connect to
  53.         tektype,                // -1 = inhibit, 0 = 4014, 1 = 4105
  54.         pastemethod,            // 0 = quick, 1 = block
  55.         pasteblocksize;            // Size of blocks to paste if using block mode
  56.     unsigned long
  57.         ip_address;                // IP address of the host
  58.  
  59.     Boolean
  60.         forcesave,                //
  61.         crmap,                    // Strange Bezerkley 4.3 CR mode needed
  62.         linemode,                // Allow linemode to be used
  63.         showlowlevelerrors,        // Show low level errors (??????????????????????)
  64.         tekclear,                // Clear TEK window vs. create new one
  65.         halfdup;                // Half duplex required
  66.         
  67.     char
  68.         bksp,                    // 0 DELETE = BKSP, 1 DELETE = DELETE
  69.         ckey,
  70.         skey,
  71.         qkey;
  72.  
  73.     Str32
  74.         TerminalEmulation,        // Name of terminal emulator to use
  75.         TranslationTable;        // Name of translation table to use by default
  76.  
  77.     Str63
  78.         hostname;                // The DNS name of the host
  79.         
  80.     Boolean
  81.         authenticate,            // Kerberos authentication
  82.         encrypt,                // Encrypted session
  83.         localecho,                // Force local echo on?
  84.         reserved1;                // Reserved by JMB - NCSA
  85.     
  86.     short
  87.         NetBlockSize;            // Size of read buffer (2.7 CCP)
  88.     short
  89.         padding[98];            // Disk space is cheap....
  90. }    SessionPrefs;
  91. #define    SESSIONPREFS_RESTYPE    'SeSn'
  92. #define SESSIONPREFS_APPID        1991        // The "<Default>" session seed copy
  93.  
  94. // Only one instance of this resource type.  Resource type PrEf
  95. typedef    struct    {
  96.     short
  97.         version;                // Version of this resource
  98.         
  99.     short
  100.         CursorType,                // 0 = block, 1 = underscore, 2 = vertical line
  101.         CopyTableThresh;        // Copy table threshold
  102.         
  103.     long
  104.         TimeSlice;                // Timeslice passed to WaitNextEvent
  105.         
  106.     ResType
  107.         CaptureFileCreator;        // Creator signature for session capture files
  108.         
  109.     Boolean
  110.         WindowsDontGoAway,        // Connection's windows remain open after connection close
  111.         StaggerWindows,            // Stagger connection windows
  112.         CommandKeys,            // Use command key shortcuts for menus
  113.         RemapTilde,                // Remap ╥~╙ to escape
  114.         BlinkCursor,            // Blink the cursor
  115.         KeyPadAndFuncMenus;        // Show Keypad and Function key menus
  116.  
  117.     short
  118.         ConnectionTimeout;        // Timeout of Connections in seconds (CCP 2.7)
  119.  
  120.     short
  121.         padding[100];            // Memory is getting cheap too....
  122. }    ApplicationPrefs;
  123. #define    APPLICATIONPREFS_RESTYPE    'PrEf'
  124. #define    APPLICATIONPREFS_ID            1991
  125. #define    APPLICATIONPREFS_APPID        1990
  126.  
  127. extern    ApplicationPrefs    *gApplicationPrefs;
  128.  
  129. // Only one instance of this structure.  Resource FTPs
  130. typedef    struct {
  131.     short
  132.         version;                // Version of this resource
  133.  
  134.     short
  135.         ServerState;            // 0 = off, 1 = no protection, 2 = password protection
  136.         
  137.     OSType
  138.         BinaryCreator,            // Default creator for files transferred in binary mode
  139.         BinaryType,                // Default type for files transferred in binary mode
  140.         TextCreator;            // Default creator for file transferred in ASCII mode
  141.         
  142.     Boolean
  143.         ShowFTPlog,                // FTP log defaults to visible
  144.         DNSlookupconnections,    // Translate IP of connecting hosts to DNS names for log
  145.         UseMacBinaryII,            // Allow MacBinary II
  146.         unused1,                // Unused
  147.         unused2,                // Unused
  148.         ResetMacBinary,            // Reset MacBinary after each transfer
  149.         DoISOtranslation;        // Use ISO translation
  150.  
  151.     short
  152.         padding[100];
  153. }    FTPServerPrefs;
  154. #define    FTPSERVERPREFS_RESTYPE    'FTPs'
  155. #define    FTPSERVERPREFS_ID         1991
  156. #define    FTPSERVERPREFS_APPID     1990
  157.  
  158. extern    FTPServerPrefs    *gFTPServerPrefs;
  159.  
  160. // Username is the resource name.  Resource type FTPu
  161. typedef    struct {
  162.     short
  163.         version;                // Version of this resource
  164.     Str32
  165.         EncryptedPassword,        // Encrypted form of user's password
  166.         DefaultDirVolName;        // Name of the volume containing user's default directory
  167.         
  168.     long
  169.         DefaultDirDirID;        // DirID of the user's default directory
  170.  
  171.     Boolean
  172.         UserCanCWD;                // User is allowed to change directories
  173.         
  174.     short
  175.         padding[20];            // Some padding for the future
  176. }    FTPUser;
  177. #define    FTPUSER                    'FTPu'
  178.  
  179. // >>>> FTP Client Prefs? <<<    
  180.  
  181. typedef    struct {
  182.     TerminalPrefs
  183.         **terminal;
  184.     SessionPrefs
  185.         **session;
  186.     Str255
  187.         WindowName;
  188.     short
  189.         ftpstate;
  190.     Rect
  191.         WindowLocation;    
  192. }    ConnInitParams;
  193.